<!--
  User: Kuttubek Aidaraliev
  Date: 24.04.2010
  Time: 09:51:24
-->

<rich:toolBar
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:rich="http://richfaces.org/rich">

    <!-- Applicant menu -->
     <rich:dropDownMenu>
          <f:facet name="label">
            <h:panelGroup>
                <h:outputText value="#{messages.applicant}"/>
            </h:panelGroup>
         </f:facet>

         <rich:menuItem submitMode="server" value="#{messages.create}"
                action="#{applicantBeanController.preInsert}" icon="/img/create.gif">
         </rich:menuItem>
         <rich:menuItem submitMode="server" value="#{messages.list}"
                action="#{applicantBeanController.list}" icon="/img/list.jpg">
         </rich:menuItem>
     </rich:dropDownMenu>

    <!-- Vacancy menu -->
     <rich:dropDownMenu>
          <f:facet name="label">
            <h:panelGroup>
                <h:outputText value="#{messages.vacancy}"/>
            </h:panelGroup>
         </f:facet>

         <rich:menuItem submitMode="server" value="#{messages.create}"
                action="#{vacancyBeanController.preInsert}" icon="/img/create.gif">
         </rich:menuItem>
         <rich:menuItem submitMode="server" value="#{messages.list}"
                action="#{vacancyBeanController.list}" icon="/img/list.jpg">
         </rich:menuItem>
     </rich:dropDownMenu>

    <!-- Customer menu -->
    <rich:dropDownMenu>
          <f:facet name="label">
            <h:panelGroup>
                <h:outputText value="#{messages.customer}"/>
            </h:panelGroup>
         </f:facet>

         <rich:menuItem submitMode="server" value="#{messages.create}"
                action="#{customerBeanController.preInsert}" icon="/img/create.gif">
         </rich:menuItem>
         <rich:menuItem submitMode="server" value="#{messages.list}"
                action="#{customerBeanController.list}" icon="/img/list.jpg">
         </rich:menuItem>
     </rich:dropDownMenu>

    <!-- Contact person menu -->
    <rich:dropDownMenu>
          <f:facet name="label">
            <h:panelGroup>
                <h:outputText value="#{messages.contactPerson}"/>
            </h:panelGroup>
         </f:facet>

         <rich:menuItem submitMode="server" value="#{messages.create}"
                action="#{contactPersonBeanController.preInsert}" icon="/img/create.gif">
         </rich:menuItem>
         <rich:menuItem submitMode="server" value="#{messages.list}"
                action="#{contactPersonBeanController.list}" icon="/img/list.jpg">
         </rich:menuItem>
     </rich:dropDownMenu>

    <!-- role menu -->
    <rich:dropDownMenu>
          <f:facet name="label">
            <h:panelGroup>
                <h:outputText value="#{messages.role}"/>
            </h:panelGroup>
         </f:facet>

         <rich:menuItem submitMode="server" value="#{messages.create}"
                action="#{roleBeanController.preInsert}" icon="/img/create.gif">
         </rich:menuItem>
         <rich:menuItem submitMode="server" value="#{messages.list}"
                action="#{roleBeanController.list}" icon="/img/list.jpg">
         </rich:menuItem>
    </rich:dropDownMenu>

    <rich:dropDownMenu >
        <f:facet name="label">
		    <h:panelGroup>
			    <h:outputText value="Select Skin" />
			</h:panelGroup>
	    </f:facet>
		<rich:menuItem submitMode="server" value="Dark-X" action="#{skinBeanController.darkSkin}" />
		<rich:menuItem submitMode="server" value="Glass-X" action="#{skinBeanController.glassSkin}" />
        <rich:menuItem submitMode="server" value="BlueSky" action="#{skinBeanController.blueSkySkin}" />
        <rich:menuItem submitMode="server" value="Wine" action="#{skinBeanController.wineSkin}" />
        <rich:menuItem submitMode="server" value="Plain" action="#{skinBeanController.plainSkin}" />
        <rich:menuItem submitMode="server" value="JapanCherry" action="#{skinBeanController.japanCherrySkin}" />
        <rich:menuItem submitMode="server" value="Ruby" action="#{skinBeanController.rubySkin}" />
        <rich:menuItem submitMode="server" value="Classic" action="#{skinBeanController.classicSkin}" />
        <rich:menuItem submitMode="server" value="Laguna" action="#{skinBeanController.lagunaSkin}" />
        <rich:menuItem submitMode="server" value="DeepMarine" action="#{skinBeanController.deepMarineSkin}" />
        <rich:menuItem submitMode="server" value="EmeraldTown" action="#{skinBeanController.emeraldTownSkin}" />
	</rich:dropDownMenu>


</rich:toolBar>
